package com.ynu.springbootappdemo.common.constant;

/**
 * 通用常量
 */
public interface CommonConstant {

    /**
     * 升序
     */
    String SORT_ORDER_ASC = "ascend";

    /**
     * 降序
     */
    String SORT_ORDER_DESC = " descend";

    /**
     * access_token和refresh_token的前缀
     */
    String ACCESS_TOKEN = "_access_token";
    String REFRESH_TOKEN = "_refresh_token";
    long ACCESS_Token_EXPIRE_TIME = 7;
    long REFRESH_Token_EXPIRE_TIME = 30;

    Integer ORDER_STATE_UNPAID = 0;
    Integer ORDER_STATE_PAID = 1;
    Integer ORDER_STATE_CONFIRMED = 2;
    Integer ORDER_STATE_REFUNDED = 3;
    
}
